package com.ywz.project.system.controller;

import com.ywz.common.ResultResp;
import com.ywz.project.system.dto.req.OperLogPageReq;
import com.ywz.project.system.service.SysOperLogApiService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 类描述 -> 操作日志API
 *
 * @Author: ywz
 * @Date: 2024/10/27
 */
@Api(tags = "操作日志API")
@RestController
@RequestMapping("/system/operLog")
public class SysOperLogApiController {
    @Resource
    private SysOperLogApiService sysOperLogApiService;

    /**
     * 方法描述 -> 分页查询操作日志
     *
     * @param req 请求参数
     * @Author: ywz
     * @Date: 2024/11/05
     */
    @GetMapping("/getOperLogPage")
    @ApiOperation("分页查询操作日志")
    public ResultResp getOperLogPage(OperLogPageReq req) {
        return sysOperLogApiService.getOperLogPage(req);
    }
}
